package egovframework.npqs.pqi.mobile.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import egovframework.rte.psl.dataaccess.EgovAbstractDAO;

@Repository("mobileDAO")
public class MobileDAO extends EgovAbstractDAO{

	@SuppressWarnings("unchecked")
	public List<Map<String,String>> jsonReceiverList(Map<String,String> map)throws Exception {

		return list("mobile.service.selectReqstInfo", map);

	}
	
	//로그인
	@SuppressWarnings("unchecked")
	public List<Map<String,String>> loginSessionContainer(Map<String,String> map)throws Exception {
		
		System.out.println("뭐뭐 들어와써?? ->"+map.toString());
		String QueryID="";

			QueryID="mobile.service.common.loginSessionContainer";
	
		return list(QueryID, map);

	}
	
	//회원가입
	public void registMember(Map<String,String> map)throws Exception {
		
		System.out.println("뭐뭐 들어와써?? ->"+map.toString());
		String QueryID="";

			QueryID="mobile.service.common.registMember";
	
		insert(QueryID, map);

	}
		
	//WordList
	public List<Map<String,String>> wordList(Map<String,String> map)throws Exception{
		System.out.println("뭐뭐 들어와써?? ->"+map.toString());
		String QueryID="";

		QueryID="mobile.service.common.wordList";

		return list(QueryID, map);
	}
	
	//WordDetail
	public List<Map<String,String>> wordDetail(Map<String, String> map)throws Exception{
		System.out.println("뭐뭐 들어와써?? ->"+map.toString());
		String QueryID="";

		QueryID="mobile.service.common.wordDetail";

		return list(QueryID, map);
	}
}
